#!/usr/bin/env bash

set +xe

rsync -av --progress "$(dirname "$(realpath "$0")")/" "~"

declare -A paths

paths[keyd]="/etc/keyd/default.conf"
paths[kitty]="$HOME/.config/kitty/kitty.conf"
paths[ohmyposh]="$HOME/.config/ohmyposh/x1z53.json"

for path in "${!paths[@]}"; do
    sudo ln -s $HOME/.$path ${paths[$path]}
done

rm ~/install.sh ~/.git -rf
